<?php
/**
 * polwebgis
 * 
 * This file is part of polwebgis.
 *
 * @copyright   Copyright (c) 2012 Dominik Janisch (http://www.joanneum.at)
 * @lastmodified    $LastChangedDate: 2012-03-07 09:15:12 +0000 (Wed, 07 Mar 2012) $
 * @revision    $Revision: 160 $ 
 */

class FormatHandler
{
    public function __construct(){}
    
    public function __destruct(){}
    
    public function getOutput($number, $is_int)
    {
        $is_int = (bool)$is_int;
        if($is_int)
            return number_format($number, 0, ",", "." );
        else
            return number_format($number, 2, ",", "." );
    }
}
?>
